# pip install pyqt5-tools  -i https://pypi.tuna.tsinghua.edu.cn/simple
# pip install pyqt5 -i https://pypi.tuna.tsinghua.edu.cn/simple
# pip install PyQt5-stubs==5.15.6.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
from PyQt5.QtWidgets import QApplication, QMainWindow
import sys
import PDFmakeUI

if __name__ == '__main__':
    app = QApplication(sys.argv)  # 创建应用程序对象
    MainWindow = QMainWindow()  # 创建主窗口
    ui = PDFmakeUI.Ui_MainWindow()
    ui.setupUi(MainWindow)
    MainWindow.show()  # 显示主窗口
    sys.exit(app.exec_())  # 进入程序的主循环，并通过exit函数确保主循环安全结束(该释放资源的一定要释放)
